-
Notifications
You must be signed in to change notification settings - Fork 163
Fix stateful vs serverless attribute conflicts #182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the comment below would be a helpful reminder, we can add it to each index file.
@colleenmcginnis there'll be just a couple of smelly ones with this change, see this grep for an example. I wonder if we need to still have a bare attribute for simply "Elasticsearch"? |
But could also just be cleaned up in follow up by ES writers! |
It's up to you and your team. If you want separate attributes for serverless and stateful, you could create two unique keys with unique values, add both to the shared attributes in the /docs repo, and update throughout the docs as you see fit. Note: This is not unique to the move to AsciiDoc. There was only one value for the |
I need to look at this again tomorrow because too late for my feeble brain 😵💫. But I fear it might be a cognitive ouchy to have the same attribute do different things whether we're working in the serverless book or not, but yeah it's not a huge deal anyways. We had |
With respect to the attributes that we're overloading in docs-content/serverless/index.asciidoc Line 31 in 7602ddb
If we really do need to keep overloading some of those terms, we could always create a shared/serverless/main.asciidoc file in the docs repo to define them there rather than at the book level. As serverless content is sprinkled beyond a single book. however, I think it's better to just use the specific, appropriate attribute in each case. |
Do we want the ability to use the same source content for both stateful and serverless docs when the only difference between the content is the product names? If yes, I think it makes sense to have one attribute key that has two values depending on the context. (An aside: If/When we consolidate serverless and stateful docs into a single page, which product name would we use?) |
I would hope we don't have any pages where that's true, since if there aren't any differences other than the product names it's not worth having two pages IMO. Maybe this exists in the short-term book-based context but ideally not in the long term.
I think this is the kind of exercise we need to try with real examples, since IMO you could go for the most generic names or most specific names depending on the context. For something very high-level and conceptual like https://www.elastic.co/guide/en/kibana/current/alerting-getting-started.html and https://www.elastic.co/guide/en/serverless/current/rules.html, there's no real difference in its behaviour across these contexts, so the most general possible references would work IMO. For something lower-level like https://www.elastic.co/guide/en/cloud/current/ec-invite-users.html and https://www.elastic.co/guide/en/serverless/current/general-manage-access-to-organization.html, I think we'd use the most specific product/solution/deployment names to call out any differences (though in this case I think they're pretty much identical too). |
Yea, I guess I was thinking in the short term as we try to prepare for what's next, but are still waiting for v3 to be ready. But, if we don't want to consolidate any source files while we wait, I guess it's worth the effort to look at each instance of Proposed next steps:
|
I've added a commit to remove the redundant variables after elastic/docs#3109 was merged. |
Apologies if I haven't caught up fully here haven't been able to dig in but here are some thoughts
This isn't a capitalization issues AFAICT it's
I think it's "Elasticsearch Serverless" so we should stick to that one IMO.
There are few cases where we just need bare |
I can do this on Monday :) |
Oh gosh this is getting so confusing 😵💫
I think Lisa was referring to:
In https://github.com/elastic/docs/pull/3109/files we updated the AsciiDoc values to match the Docsmobile values.
It looks like you (@leemthompo) updated the |
😵💫 Here's some more words to add to this salad:
|
That's water under the bridge. Those were simpler times. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can all scatter and revisit our use of attributes in our content sets separately?
Sure. If you don't want to make any other updates here, feel free to merge. |
Removes attribute
include
s inindex*.asciidoc
files that are subsections of the new Serverless book. These files will inherit attributes fromserverless/index.asciidoc
.h/t @leemthompo for pointing out incorrect attribute values on rendered pages!